package com.bosicloud.cmb.ibp.aws.adapter.api;

import com.amazonaws.services.ecs.model.Service;
import com.bosicloud.cmb.ibp.aws.adapter.commom.constant.UrlDefine;
import com.bosicloud.cmb.ibp.aws.adapter.commom.dto.DeployeAppParamDTO;
import com.bosicloud.cmb.ibp.aws.adapter.commom.dto.DeployeAppResponseDTO;
import com.bosicloud.cmb.ibp.aws.adapter.commom.dto.GetServiceInfoDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Jack Peng / ziliang.peng@bosicloud.com
 */
@FeignClient(value = "DeployAppService", url = "${ibp.service.aws-adapter-url}")
public interface DeployAppClient {


    @PostMapping(value = UrlDefine.DEPLOY_APPS)
    DeployeAppResponseDTO deployeApps(@RequestBody DeployeAppParamDTO param);

    @PostMapping(value = UrlDefine.GET_SERVICE_INFO)
    List<Service> getServiceInfo(@RequestBody GetServiceInfoDTO param);
}
